package com.example.javaeespringioc.demos;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class UserRepository {
    @Resource(name = "user1")
    private User user;
    public void run(){
        System.out.println(user);
        System.out.println("UserRepository run...");
    }
}
